package DateTest;

import java.util.Date;

public class TestDate {
    public static void main(String[] args) {
        long a = Long.MAX_VALUE/(1000L*3600*24*365);
        //代悦表示到2.9亿年后
        System.out.println(a);
        //当前时刻的毫秒数
        long nowMum = System.currentTimeMillis();
        System.out.println(nowMum);

        //没有传参就是当前时刻
        Date d1 = new Date(1000L*3600*24*365*250);
        System.out.println(d1);
        System.out.println(d1.getTime());



    }
}
